<template>
  <div>
  <div  class="home" >
      <div class="leftmenu">
        <ul>
      <li >
        <i class="iconfont icon-yanjing"></i>
       <router-link class="link" to='/discovery'>发现音乐</router-link>
      </li>
      <li >
        <i class="iconfont icon-yinyue"></i>
       <router-link class="link" to="/playlists">推荐音乐</router-link>
      </li>
      <li>
        <i class="iconfont icon-zuixin"></i>
        <router-link class="link" to="/songs">最新音乐</router-link>
      </li >
      <li>
        <i class="iconfont icon-shipin"></i>
        <router-link class="link" to='/mvs'>最新MV</router-link>
      </li>   
      </ul>
      </div>
      <div class="rightcontent">
        <router-view></router-view>
      </div>
  </div>
  <!-- 音乐播放器 -->
  <div class="radio"> 
    <audio :src='player' controls autoplay ></audio>
  </div>
  </div>
</template>

<script>
  export default {
    name:'home',
    data () {
      return {
        player:''
      }
    },
    methods: {
     
    }

  }
</script>

<style lang='less'  scoped>
  .home{
    display: flex;
    .leftmenu{
      position: fixed;
      top: 50px;
      left: 0px;
      height: 631px;
       width: 200px;
       li{
         display: flex;
         font-size: 16px;
         font-weight: 300px;
         padding-top: 15px;
         height: 35px;
         border-bottom: 1px solid rgba(192,192,192,.3);
         .link{
           font-size: 17px;
         }
       }
    }
    .rightcontent{
      flex: 1;
    }
  }
   .radio{
     text-align: center;
     border-top: 1px solid #e6e6e6;  
     audio{
     background-color: #f1f3f4;
     position: fixed;
     right: 0px;
     bottom: 0px;
     width: 100%;
     height: 50px;
     border-style: none;
     border-radius: 0px;
     }
     
   }
  .iconfont{
    margin: 0 15px 0 50px;
  }
  .router-link-active{
   color:red;
  }
  li:hover{
    background-color: #eee;
  }
</style>